In C-calculator mode, if and else are reserved keywords. C-calculator mode if construction is similar to the one in standard C. Note that cmode-statements refers to any sequence of C-calculator mode commands and that cmode-line-statement refers to a semicolon separated list of C-calculator mode commands typed on the same line.
if (conditions) cmode-line-statement
or
if (conditions)
cmode-line-statement
or
if (conditions) {
cmode-statements
}
or, using the else constructions,
if (conditions)
cmode-line-statement
else
cmode-line-statement
or, for statements on more than one line,
if (conditions) {
cmode-statements
} else if (conditions) {
cmode-statements
} else {
cmode-statements
}
C, cmode